import Layout from "@/layouts";

export default [
  {
    path: '/home',
    component: Layout,
    redirect: '/home/system',
    meta: {
      title: '系统管理',
      // icon: 'view-module'
      isOrNot: true,
      // is_single: true
    },
    children: [
      // {
      //   path: 'base',
      //   component: () => import('@/pages/blank.vue'),
      //   meta: {title: '首页', icon: 'view-module',
      //   },
      // },
      {
        path: 'system',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/home/system/user',
        meta: { title: '系统管理', icon: 'view-module'},
        children: [
          {
            path: 'user',
            component: () => import('@/pages/common/system/user-index.vue'),
            meta: { title: '用户管理'},
          },
          {
            path: 'role',
            component: () => import('@/pages/common/system/role-index.vue'),
            meta: { title: '角色管理'},
          },
          {
            path: 'sub-system',
            component: () => import('@/pages/common/system/subsystem-index.vue'),
            meta: { title: '子系统管理'},
          },
          {
            path: 'unit',
            component: () => import('@/pages/common/system/unit-index.vue'),
            meta: { title: '单位管理'},
          },
          {
            path: 'member',
            component: () => import('@/pages/common/system/member-index.vue'),
            meta: {title: '人员管理'},
          },
          {
            path: 'post',
            component: () => import('@/pages/common/system/post-index.vue'),
            meta: { title: '岗位管理'},
          },
          {
            path: 'dict',
            name: 'home-system-dict-type-index',
            component: () => import('@/pages/common/system/dict-type-index.vue'),
            meta: { title: '字典管理', isAlive: true},
          },
          {
            path: 'major',
            component: () => import('@/pages/common/system/major-index.vue'),
            meta: { title: '专业管理'},
          },
          {
            path: 'result',
            component: () => import('@/pages/common/system/result-index.vue'),
            meta: { title: '成果管理'},
          },
          {
            path: 'profTit',
            component: () => import('@/pages/common/system/profTit-index.vue'),
            meta: { title: '职称管理'},
          },
          {
            path: 'location',
            component: () => import('@/pages/common/system/location-index.vue'),
            meta: { title: '地址管理'},
          },
          {
            path: 'expressway',
            component: () => import('@/pages/common/system/expressway.vue'),
            meta: { title: '公路数据管理'},
          },
        ]
      },
      {
        path: 'monitor',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/home/monitor/job',
        meta: {title: '系统监控', icon: 'view-module'},
        children: [
          {
            path: 'job',
            component: () => import('@/pages/common/monitor/job.vue'),
            meta: { title: '定时任务'},
          },
        ]
      },
      {
        path: 'user-analysis',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/home/user-analysis/password',
        meta: {title: '用户统计', icon: 'view-module'},
        children: [
          {
            path: 'password',
            component: () => import('@/pages/common/user-analysis/password-user-index.vue'),
            meta: { title: '重置密码用户列表'},
          },
          {
            path: 'login-count',
            component: () => import('@/pages/common/user-analysis/login-count-index.vue'),
            meta: { title: '登录次数用户列表'},
          },
          {
            path: 'online',
            component: () => import('@/pages/common/user-analysis/online-index.vue'),
            meta: { title: '在线用户列表'},
          },
          {
            path: 'login-lock',
            component: () => import('@/pages/common/user-analysis/login-lock.vue'),
            meta: { title: '登录锁定用户列表'},
          },
        ],

      },
      {
        path: 'log',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/home/log/operLog',
        meta: {title: '日志管理', icon: 'view-module'},
        children: [
          {
            path: 'operLog',
            component: () => import('@/pages/common/log/oper-log-index.vue'),
            meta: {title: '操作日志'},
          },
          {
            path: 'loginLog',
            component: () => import('@/pages/common/log/login-log-index.vue'),
            meta: {title: '登录日志'},
          },
        ]
      },
      {
        path: 'sms',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/home/sms/template',
        meta: {title: '短信管理', icon: 'view-module'},
        children: [
          {
            path: 'template-index',
            component: () => import('@/pages/common/sms/template-index.vue'),
            meta: {title: '短信模版列表'},
          },
          {
            path: 'log-index',
            component: () => import('@/pages/common/sms/log-index.vue'),
            meta: {title: '短信发送日志'},
          },
        ]
      }
    ]
  }]
